package vcp.models;

import vcp.common.AbstractModel;
import client.Message;
import control.SimpleClient;
import db.parking.beans.Orders;

/**
 * Orders Subscription Model
 *
 */
public class OrdersSubscriptionModel  extends AbstractModel{
	/**
	 * create Subscription Order request
	 * @param bean
	 */
	public void createSubscriptionOrder(Orders bean) {
		client = SimpleClient.getInstance();
		client.addPropertyChangeListener(this);
		
		Message msg = new Message(bean,"AddSubscriberOrder");
		 try {
				client.sendToServer(msg);			
		 }
		 catch (Exception ex)
		    {
			 System.out.println(ex.toString()+" OrderControl->InsertSubscribed");
		    }
		
	}

}
